<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>
<?php

include_once "function_obj_time.php";

$in_array['Name']= base64_encode($_POST['objname']);
$in_array['StartTime'] = $_POST['start_hour_select']. ':'. $_POST['start_minite_select'];
$in_array['EndTime']   = $_POST['end_hour_select']. ':'. $_POST['end_minite_select'];
$in_array['Week'] = $_POST['week_check1']. $_POST['week_check2']. $_POST['week_check3']. $_POST['week_check4']. 
		    $_POST['week_check5'].  $_POST['week_check6'].  $_POST['week_check7'];
$in_array['TimeType'] = 1;

if ($in_array['StartTime'] == ":")
	$in_array['StartTime'] = "";
if ($in_array['EndTime'] == ":")
	$in_array['EndTime'] = "";

AppendXmlTimeObject($in_array);

include "function_misc_log.php";
$in_array['Name'] = "'". ($in_array['Name']). "'";
$in_array['StartTime'] = "'". ($in_array['StartTime']). "'";
$in_array['EndTime'] = "'". ($in_array['EndTime']). "'";
$in_array['Week'] = "'". ($in_array['Week']). "'";
logger("Add", $in_array,"Object_Time_Circle");

include "function_web_misc.php";
PrintSuccessPageAndJump('obj_time_circle_list.php');
//echo("<meta http-equiv='refresh'content=0;URL='obj_time_circle_list.php'>");
?>
